<?php
declare (strict_types = 1);

namespace app\admin\controller;

use app\BaseController;

class Logout extends BaseController
{
    /**
     * 退出页面
     *
     * @return \think\Response
     */
    public function index()
    {
        session(config('admin.session_admin'), null);
        return redirect((string) url('/admin/login/index'));
    }
}
